<?xml version="1.0" encoding="UTF-8"?>
<f:view xmlns="http://www.w3.org/1999/xhtml"
		xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:w="http://www.apusic.com/jsf/widget"
        xmlns:ajax="http://www.apusic.com/jsf/ajax"
        xmlns:layout="http://www.apusic.com/jsf/layout"
        xmlns:om="http://www.apusic.com/jsf/misc"
		xmlns:l="http://www.apusic.com/jsf/layout"
        renderKitId="AJAX">
<kd/>        
	<w:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta http-equiv="Pragma" content="no-cache"/>
    <meta http-equiv="Cache-Control" content="no-cache"/>
    <meta http-equiv="Expires" content="0"/>
    <link rel="stylesheet" type="text/css" href="#{skin.getSkinReourceURL('/widget/css/custom_list.css')}"/>		
		<style type="text/css">
      .spanSel{background:Highlight;	color:white;CURSOR: hand;}
      .spanCss {
	      float:left;
	      width:100%;	
	      height:20px;
      }
		</style>  			
	</w:head>
	
	<w:page title="#{winlet.KDCommonPromptDialogBean.title}" prependId="false">
		<w:form id='main'>
		  <ajax:scripter script="#{winlet.KDCommonPromptDialogBean.script}"></ajax:scripter>
		  
			<!-- 工具栏  -->
			<w:toolBar id="toolbarF7" jsvar="toolbarF7Jsvar">
				<w:button value="刷新" actionListener="#{winlet.KDCommonPromptDialogBean.refreshData}"/>
				<w:separator/>
				<w:button value="退出" actionListener="#{winlet.KDCommonPromptDialogBean.doCancel}"/>  
			</w:toolBar>
			
			<!-- 快速过滤  -->
			<h:panelGrid columns="5" style="margin-left:5px;margin-top:3px;font-size:12px">
    			<w:combo typeAhead="true"
    				     value="#{winlet.KDCommonPromptDialogBean.selectItem}" 
    				     valueChangeListener="#{winlet.KDCommonPromptDialogBean.valueChange}">
			    	<f:selectItems value="#{winlet.KDCommonPromptDialogBean.selectItems}"/>
		    	</w:combo>
		    	<w:textField id="txtValue" value="#{winlet.KDCommonPromptDialogBean.value}"></w:textField>				
				<w:button id="btnSearch" value="快速查询" actionListener="#{winlet.KDCommonPromptDialogBean.searchData}"/>
				<h:selectBooleanCheckbox id="chkBlur" binding="#{winlet.KDCommonPromptDialogBean.blurCheckbox}" value="#{winlet.KDCommonPromptDialogBean.blur}"/>
				<h:outputLabel value="模糊查询" for="chkBlur"/>					
			</h:panelGrid>
			<layout:panel jsvar="mutiPanel" id="muti" style="border:1px;position:absolute;left:478px;top:32px;height:300px;width:200px;"  autoScroll="true" collapsed="false" collapsible="true" title="添加多选"  height="360" rendered="#{winlet.KDCommonPromptDialogBean.muti}">
		  </layout:panel> 
			<!-- 数据表格  -->
     		<div class="x-window-body" style="margin-left:5px;"> 				
				<w:dataGrid id="grid"
				            jsvar="f7grid"
							       style="height:368px"
							      binding="#{winlet.KDCommonPromptDialogBean.grid}">
				</w:dataGrid>
			</div> 					
			
			<!-- 确定、取消  -->
			<div class="x-panel-btns-ct">
        		<div class="x-panel-btns x-panel-btns-right">
             		<h:panelGrid columns="2" style="float: right">
                		<w:button id="btnOK" value="确定" onclick="F7.doOK();return false;"/>
						        <w:button id="btnCancel" value="取消" onclick="F7.doCancel();return false;"/>
					     </h:panelGrid>	  
        		</div> 				
  			</div> 				
		</w:form>
	</w:page>
	<script language="javascript" src="commonF7.js"></script>
</f:view>